//package com.fingard.dsp.bank.directbank.ccb04;
//
//import java.io.BufferedOutputStream;
//import java.io.File;
//import java.io.FileOutputStream;
//import java.io.IOException;
//import java.math.BigDecimal;
//import java.net.URLEncoder;
//import java.util.ArrayList;
//import java.util.Date;
//import java.util.List;
//
//import com.fingard.dsp.bank.directbank.ccb04.util.Des3;
//import com.fingard.dsp.bank.directbank.ccb04.util.RSAHelper;
//import org.bouncycastle.util.encoders.Base64;
//
//import com.fingard.FGBiz;
//import com.fingard.constant.Format;
//import com.fingard.dsp.bank.dbobj.receipt.ReceiptData;
//import com.fingard.dsp.bank.dbobj.receipt.ReceiptDataHelper;
//import com.fingard.dsp.bank.directConfig.ReceiptProConfig;
//import com.fingard.dsp.bank.directbank.bankInterface.IReceiptPro;
//import com.fingard.dsp.bank.reqrespobj.downloadreceipt.ReqQryReceipt;
//import com.fingard.dsp.bank.reqrespobj.downloadreceipt.RetAtsReceipt;
//import com.fingard.dsp.bank.reqrespobj.transaction.Req7516HisTrans;
//import com.fingard.dsp.task.command.SyncReceipt;
//import com.fingard.io.FileHelper;
//import com.fingard.text.Base64Helper;
//import com.fingard.text.StringHelper;
//import com.fingard.xml.XElement;
//import com.fingard.xml.XmlTextReader;
//import com.fingard.xml.XmlTextWriter;
//
//public class CCB04ReceiptPro extends CCB04Base implements IReceiptPro{
//
//	public RetAtsReceipt qryReceiptOneDay(ReceiptProConfig pConfig, ReqQryReceipt pReqReceipt, Date pOneDay)
//			throws Exception {
//
//		//先查历史明细
//		CCB04Transaction transaction = new CCB04Transaction();
//        transaction.CCBS_TxnSrlNos = this.CCBS_TxnSrlNos;
//        transaction.reqHeader = pReqReceipt.reqHeader;
//        transaction.bankFront = this.bankFront;
//        transaction.sbLog = this.sbLog;
//        pReqReceipt.reqHeader.transType = "7516";
//        Req7516HisTrans tmpReq7516 = new Req7516HisTrans(pReqReceipt.reqHeader);
//        tmpReq7516.actArea = pReqReceipt.areaCode;
//        tmpReq7516.actCur = pReqReceipt.actCur;
//        tmpReq7516.actNum = pReqReceipt.actNum;
//        tmpReq7516.dateFrom = Format.Date8Format.format(pOneDay);
//        tmpReq7516.dateTo = Format.Date8Format.format(pOneDay);
//        tmpReq7516.directRight = pReqReceipt.directRight;
//
//        //指明是回单查询发起的历史明细查询
//        transaction.isFromReceiptQry = true;
//        //调用历史明细查询 接口查询CCBS交易流水号
//        transaction.d_7516_HisTrans(tmpReq7516);
//        pReqReceipt.reqHeader.transType = "DOWNLOADRECEIPT";
//
//        String qryDay8 = Format.Date8Format.format(pOneDay);
//
//        ReceiptDataHelper receiptHelper = null;//回单数据保存类，分区分表
//        try{
//        	receiptHelper = new ReceiptDataHelper(pReqReceipt.reqHeader.tenant, pOneDay);
//        	String aLog = "";
//        	/*
//        	//key:receiptNo value:busRef
//            Map<String, String> mapReceiptNo = receiptHelper.getReceiptNoBusRefMap(p_reqReceipt.actNum, pOneDay);
//            aLog = p_reqReceipt.actNum+"，"+qryDay8+"需下载回单个数："+mapReceiptNo.size();
//            WriteBankLogLn(aLog);
//            FGBiz.logTrace.debug(this.getLogCode(), aLog);
//            if(mapReceiptNo.size()<=0){
//            	break;
//            }
//            */
//
//        	try{
//        		int INQUIRE_NUM = this.getBankConfig().getValueAsInt("receiptInquireNum");//每页条数
//                if(INQUIRE_NUM<=0){
//                	INQUIRE_NUM = 20;
//                }
//
//                int TOT_PAGE_NUM = 0;
//                int PAGE_NO = 1;
//                do{
//                	//查询回单索引 P1CCMS001
//                    txCode = "P1CCMS001";//查询回单索引 P1CCMS001
//                    XmlTextWriter xmlWriterWithoutCDATA = new XmlTextWriter();//发银行报文的XML对象
//                    writeCommonHeaderWithoutCDATA(xmlWriterWithoutCDATA);
//                    xmlWriterWithoutCDATA.writeStartElement("request");
//                    xmlWriterWithoutCDATA.writeElementString("ACCT_NO", pReqReceipt.actNum);
//                    xmlWriterWithoutCDATA.writeElementString("TX_LOG_NO", "", true);
//                    xmlWriterWithoutCDATA.writeElementString("BEGIN_DATE", Format.Date8Format.format(pOneDay));
//                    xmlWriterWithoutCDATA.writeElementString("END_DATE", Format.Date8Format.format(pOneDay));
//                    xmlWriterWithoutCDATA.writeElementString("MIN_AMT ", "", true);
//                    xmlWriterWithoutCDATA.writeElementString("MAX_AMT", "", true);
//                    xmlWriterWithoutCDATA.writeElementString("PATCH_FLAG", "", true);
//                    xmlWriterWithoutCDATA.writeElementString("DOC_NO", "", true);
//                    xmlWriterWithoutCDATA.writeElementString("PAGE_NO", String.valueOf(PAGE_NO));
//                    xmlWriterWithoutCDATA.writeElementString("INQUIRE_NUM", String.valueOf(INQUIRE_NUM));
//                    xmlWriterWithoutCDATA.writeElementString("ASPD_ECD", "00000886");
//                    xmlWriterWithoutCDATA.writeEndDocument();
//                    int n = xmlWriterWithoutCDATA.toXmlString().length();
//                    WriteBankLogLn("无CDATA:\n" + xmlWriterWithoutCDATA.toXmlString());
//                    xmlLength = decimalFormat.format(n);
//                    XmlTextWriter xmlWriter = new XmlTextWriter();//发银行报文的XML对象
//                    //写入通用的头部节点
//                    writeCommonHeader(xmlWriter);
//                    xmlWriter.writeStartElement("request");
//                    xmlWriter.writeElementCDATA("ACCT_NO", pReqReceipt.actNum);
//                    xmlWriter.writeElementCDATA("TX_LOG_NO", "");
//                    xmlWriter.writeElementCDATA("BEGIN_DATE", Format.Date8Format.format(pOneDay));
//                    xmlWriter.writeElementCDATA("END_DATE", Format.Date8Format.format(pOneDay));
//                    xmlWriter.writeElementCDATA("MIN_AMT ", "");
//                    xmlWriter.writeElementCDATA("MAX_AMT", "");
//                    xmlWriter.writeElementCDATA("PATCH_FLAG", "");
//                    xmlWriter.writeElementCDATA("DOC_NO", "");
//                    xmlWriter.writeElementCDATA("PAGE_NO", String.valueOf(PAGE_NO));
//                    xmlWriter.writeElementCDATA("INQUIRE_NUM", String.valueOf(INQUIRE_NUM));
//                    xmlWriter.writeElementCDATA("ASPD_ECD", "00000886");
//                    xmlWriter.writeEndDocument();
//                    aLog = pReqReceipt.actNum+"，"+qryDay8+"查询第"+PAGE_NO+"页回单索引";
//                    WriteBankLogLn(aLog);
//                    FGBiz.logTrace.debug(this.getLogCode(), aLog);
//                    String[] tmpStrRet = sendToBank(xmlWriter.toXmlString());
//                    if (tmpStrRet[0].length() == 0) {
//                    	StringBuilder msg = new StringBuilder();
//                    	XmlTextReader tmpBkReader = getBankInfo(tmpStrRet[1], msg);
//
//                        if (tmpBkReader != null) {
//                        	String xlnStatus = tmpBkReader.getFirstText("/Transaction/Transaction_Header/SYS_TX_STATUS");// 服务状态
//                        	String xlnRespCode = tmpBkReader.getFirstText("/Transaction/Transaction_Body/response/RESP_CODE");// 服务响应码
//                        	String xlnRespDesc = tmpBkReader.getFirstText("/Transaction/Transaction_Body/response/RESP_MESG");// 服务响应描述
//                        	if ("00".equals(xlnStatus) && "000000".equals(xlnRespCode)) {
//                        		String totNum = tmpBkReader.getFirstText("/Transaction/Transaction_Body/response/TOT_PAGE_NUM");
//                        		if(StringHelper.hasAnyChar(totNum)){
//                        			TOT_PAGE_NUM = Integer.parseInt(totNum);
//                        		}
//                                while (tmpBkReader.read("/Transaction/Transaction_Body/response/Record")) {
//                                	/**				<><![CDATA[44220190009125627790]]></INNER_NO>
//    				<><![CDATA[20190920]]></TRAN_DATE>
//    				<><![CDATA[4420008000NNPVEKGY6]]></LOG_NO>
//    				<><![CDATA[贷]]></CR_COD>
//    				<>1265167.20</TX_AMT>
//    				<><![CDATA[电汇凭证]]></DOC_TYP>
//    				<><![CDATA[凭证号码]]></DOC_NO>
//    				<><![CDATA[0000300000000341]]></OP_ACCT_NO>
//    				<><![CDATA[深银联易办事备付金]]></OP_ACCT_NAME>
//    				<><![CDATA[人民币]]></CURR_NAME>*/
//                                	ReceiptData rcpt = new ReceiptData();
//                                	rcpt.ownAct = pReqReceipt.actNum;
//                                	rcpt.bank = "105";
//                                	rcpt.srcSys = "CCB04";
//                                	rcpt.istNbr = tmpBkReader.readedXElement.getSingleText("INNER_NO");
//                                	rcpt.receiptNo = tmpBkReader.readedXElement.getSingleText("LOG_NO");
//                                	rcpt.bnkSeqNo = rcpt.receiptNo;
//                                	rcpt.busDate = Integer.parseInt(qryDay8);
//                                	String TRAN_DATE = tmpBkReader.readedXElement.getSingleText("TRAN_DATE");
//                                	if(!qryDay8.equals(TRAN_DATE)){
//                                		aLog = rcpt.receiptNo+"回单数据的日期"+TRAN_DATE+"与预期"+qryDay8+"不符";
//                                		WriteBankLogLn(aLog);
//                                		FGBiz.logTrace.error(this.getLogCode(), aLog);
//                                	}
//                                	if(CCBS_TxnSrlNos.containsKey(rcpt.receiptNo)){
//                                		rcpt.busRef = CCBS_TxnSrlNos.get(rcpt.receiptNo);
//                                	}
//                                    String CR_COD = tmpBkReader.readedXElement.getSingleText("CR_COD");
//                                    if("贷".equals(CR_COD)){//收入
//                                    	rcpt.moneyWay = "2";
//                                    }else if("借".equals(CR_COD)){//支出
//                                    	rcpt.moneyWay = "1";
//                                    }
//                                    if(StringHelper.isNullOrEmpty(rcpt.receiptNo)){
//                                    	WriteBankLogLn("建行返回LOG_NO为空，无法关联历史明细，赋值为INNER_NO："+rcpt.istNbr);
//                                    	rcpt.receiptNo = rcpt.istNbr;
//                                    }
//                                    rcpt.amount = new BigDecimal(tmpBkReader.readedXElement.getSingleText("TX_AMT"));
//                                    rcpt.receiptType = tmpBkReader.readedXElement.getSingleText("DOC_TYP");
//                                    rcpt.receiptType = StringHelper.subStringByUtf8Byte(rcpt.receiptType, 32);
//                                    rcpt.voucherNo = tmpBkReader.readedXElement.getSingleText("DOC_NO");
//                                    rcpt.oppActNum = tmpBkReader.readedXElement.getSingleText("OP_ACCT_NO");
//                                    rcpt.oppActName = tmpBkReader.readedXElement.getSingleText("OP_ACCT_NAME");
//                                    rcpt.cur = convertCurToATS(tmpBkReader.readedXElement.getSingleText("CURR_NAME"));
//                                    int inRe = receiptHelper.insertIfNotExist(rcpt);
//                                    if(inRe == 0 && StringHelper.hasAnyChar(rcpt.busRef)){
//                                    	//由于建行历史明细可能返回的节点不对称，造成busRef为空，这里再补更新一次
//                                    	int upAff = receiptHelper.updateBusRef(rcpt);
//                                    	WriteBankLogLn(rcpt.receiptNo+"更新BusRef，影响行数："+upAff);
//                                    }
//                                    WriteBankLogLn(rcpt.receiptNo+"写入数据库，影响行数："+inRe);
//                                }
//                        	}else{
//                        		aLog = "SYS_TX_STATUS："+xlnStatus+"，response/RESP_CODE："+xlnRespCode+"，RESP_MESG："+xlnRespDesc;
//                        		WriteBankLogLn(aLog);
//                            	FGBiz.logTrace.debug(this.getLogCode(), aLog);
//                        		break;
//                        	}
//                        } else {
//                            WriteBankLogLn("载入xml失败：" + msg.toString());
//                            FGBiz.logTrace.debug(this.getLogCode(), "载入xml失败：" + msg.toString());
//                            break;
//                        }
//                    }else{
//                    	aLog = tmpStrRet[0]+"-"+tmpStrRet[1];
//                    	WriteBankLogLn(aLog);
//                    	FGBiz.logTrace.debug(this.getLogCode(), aLog);
//                    	break;
//                    }
//                	PAGE_NO++;
//                }while(PAGE_NO<=TOT_PAGE_NUM);
//        	}catch(Exception ex){
//        		WriteBankLogLn(ex);
//        		FGBiz.logTrace.exception(this.getLogCode(), ex);
//        	}
//
//        	aLog = pReqReceipt.actNum+"，"+qryDay8+"回单数据查询完成，开始下载文件";
//            WriteBankLogLn(aLog);
//            FGBiz.logTrace.debug(this.getLogCode(), aLog);
//            ArrayList<String> list = receiptHelper.getIstNbrList(pReqReceipt.actNum, pOneDay);
//            aLog = pReqReceipt.actNum+"，"+qryDay8+"需要进行下载的回单文件个数："+list.size();
//            WriteBankLogLn(aLog);
//            FGBiz.logTrace.debug(this.getLogCode(), aLog);
//            if(list.size() <= 0){
//                return null;
//            }
//            //int rdCount = 0;
//            //ArrayList<String> batReq = new ArrayList<String>();
//            for(int i=0;i<list.size();i++){
//            	//rdCount++;
//            	//batReq.add(list.get(i));
//            	//单次做多支持20笔回单
//            	//if(rdCount == 20 || i == (list.size()-1)){
//            	String istNbr = list.get(i);
//            		aLog = pReqReceipt.actNum+"，"+qryDay8+"下载"+istNbr;
//                    WriteBankLogLn(aLog);
//                    FGBiz.logTrace.debug(this.getLogCode(), aLog);
//                    txCode = "P1CCMS006";//回单文件下载[同步模式]
//                    XmlTextWriter xmlWriterWithoutCDATA = new XmlTextWriter();
//                    writeCommonHeaderWithoutCDATA(xmlWriterWithoutCDATA);
//                    xmlWriterWithoutCDATA.writeStartElement("request");
//                    xmlWriterWithoutCDATA.writeElementString("ACCT_NO", pReqReceipt.actNum);
//                    xmlWriterWithoutCDATA.writeElementString("DOWNLOAD_NOS", istNbr);
//                    xmlWriterWithoutCDATA.writeElementString("ASPD_ECD", "00000886");
//                    xmlWriterWithoutCDATA.writeEndDocument();
//                    int n = xmlWriterWithoutCDATA.toXmlString().length();
//                    xmlLength = decimalFormat.format(n);
//                    XmlTextWriter xmlWriter = new XmlTextWriter();//发银行报文的XML对象
//                    //写入通用的头部节点
//                    writeCommonHeader(xmlWriter);
//                    xmlWriter.writeStartElement("request");
//                    xmlWriter.writeElementCDATA("ACCT_NO", pReqReceipt.actNum);
//                    xmlWriter.writeElementCDATA("DOWNLOAD_NOS", istNbr);
//                    xmlWriter.writeElementCDATA("ASPD_ECD", "00000886");
//                    xmlWriter.writeEndDocument();
//                    String[] tmpStrRet = sendToBank(xmlWriter.toXmlString());
//                    if (tmpStrRet[0].length() == 0) {
//                    	StringBuilder msg = new StringBuilder();
//                        XmlTextReader tmpBkReader = getBankInfo(tmpStrRet[1], msg);
//                        if (tmpBkReader != null) {
//                        	String xlnStatus = tmpBkReader.getFirstText("/Transaction/Transaction_Header/SYS_TX_STATUS"); // 服务状态
//                            String xlnRespCode = tmpBkReader.getFirstText("/Transaction/Transaction_Header/SYS_RESP_CODE"); // 服务响应码
//                            String xlnRespDesc = tmpBkReader.getFirstText("/Transaction/Transaction_Header/SYS_RESP_DESC"); // 服务响应描述
//                            if ("000000000000".equals(xlnRespCode)) {
//                                while (tmpBkReader.read("/Transaction/Transaction_Body/response/FILE_LIST_PACK")) {
//                                    List<XElement> fileinfos = tmpBkReader.readedXElement.getChildList("FILE_INFO");
//                                    for (XElement xElement : fileinfos) {
//                                    	String FILE_NAME = xElement.getSingleText("FILE_NAME");
//                                    	aLog = "下载"+FILE_NAME;
//                                    	WriteBankLogLn(aLog);
//                                        FGBiz.logTrace.debug(this.getLogCode(), aLog);
//                                    	try {
//                                            //POST 参数 1: chanl_cust_no=电子银行合约编号
//                                            String chanl_cust_no = bankFront.org;
//                                            byte[] tmpName = Des3.encryptMode(Base64Helper.decode(bankFront.token), FILE_NAME.getBytes("GBK"));
//                                            tmpName = Base64.encode(tmpName);
//                                            String filename = new String(tmpName);
//                                            //POST 参数 3：signature=数字签名（对文件名作的数字签名）
//                                            String priKey = FileHelper.readFileText(strtmpFile + chanl_cust_no + "_prikey.txt", getCharset());
//                                            //MD5withRSA(batchFileName);
//                                            String signature = RSAHelper.sign(new String(FILE_NAME), priKey, getCharset());
//                                            StringBuilder tmpMsg = new StringBuilder();
//                                            tmpMsg.append("chanl_cust_no=" + URLEncoder.encode(chanl_cust_no, "gbk"));
//                                            tmpMsg.append("&filename=" + URLEncoder.encode(filename, "gbk"));
//                                            tmpMsg.append("&signature=" + URLEncoder.encode(signature, "gbk"));
//                                            String[] postRet = download(tmpMsg.toString());
//                                            String batchResult = "";
//                                            boolean isFile = true;
//                                            /*
//                                            //回单文件的base64以“wylY+qFxWr1Rbi0uW6RdP29TXRp1hiqgA9fHPabunj”打头
//                                            if(postRet[1].startsWith("wylY+qFxWr1Rbi0uW6RdP29TXRp1hiqgA9fHPabunj")){
//                                            	isFile = true;
//                                            }else{
//                                            	try {
//                                                    batchResult = IsBatchValid(postRet[1]);
//                                                } catch (NumberFormatException e) {
//                                                	WriteBankLogLn(e);
//                                            		FGBiz.logTrace.exception(this.getLogCode(), e);
//                                                    isFile = true;
//                                                }
//                                            }
//                                            */
//                                            //if (isFile) {
//                                            byte[] tmpBNKReturnBytes = null;
//                                                //得到银行返回的数字签名Md5_byte和报文密文DES_byte
//                                                //HTTP 服务方返回时是返回一个字节流 byte[]，因此需要约定 byte[]的数据格式。
//                                                //返回的 byte[]的格式：数字签名的长度(固定长度 10 个字节) +数字签名数据+加密后的数据。解密时应先根据前 10 位算出数字签名的长度，然后再截取数字签名及报文密文。
//                                            byte[] data = base64Decoder.decodeBuffer(postRet[1]);
//
//                                            byte[] len_byte = new byte[10];
//                                            System.arraycopy(data, 0, len_byte, 0, 10);
//                                            //通过判断前10个字节是否为数字，判定是否为pdf文件，如果是数字，则是报文
//                                            if(StringHelper.isNumber(len_byte)){
//                                            	isFile = false;
//                                            }
//                                            if (isFile) {
//                                                byte[] p_Key = Base64Helper.decode(bankFront.token);
//                                                //Todo
//                                                tmpBNKReturnBytes = Des3.decryptMode(p_Key, data);
//                                                //回单编号
//
//
//                                                    //本地回单路径
//                                                    //      //与资金约定写入回单相对路径为：/银行代码/YYYYMM/付方账号/回单编号.pdf；举例如： CCB/201812/123456/17213000001.pdf
//                                                    String localPath = pConfig.getRelativeSaveDir(pReqReceipt.reqHeader, pOneDay) + File.separator + pReqReceipt.actNum;
//                                                    if(!FILE_NAME.contains(qryDay8)){
//                                                    	localPath+=File.separator+qryDay8;
//                                                    }
//                                                    if (tmpBNKReturnBytes != null) {
//                                                        FileOutputStream fos = null;
//                                                        BufferedOutputStream bfo = null;
//                                                        try {
//                                                            String localFileRelative = localPath + File.separator + StringHelper.trimStartFileSp(FILE_NAME);
//                                                            localFileRelative = StringHelper.replaceFileSp(localFileRelative);
//                                                            String localPdfFile = pConfig.localSaveMainDir+File.separator+localFileRelative;
//                                                            String localPdfFileTemp = localPdfFile+".tmp";
//                                                            FileHelper.deleteFileIfExists(localPdfFileTemp);
//                                                            aLog = FILE_NAME+"保存至临时文件"+localPdfFileTemp;
//                                                        	WriteBankLogLn(aLog);
//                                                            FGBiz.logTrace.debug(this.getLogCode(), aLog);
//                                                            File file = new File(localPdfFileTemp);
//                                                            if (!file.exists()) {
//                                                                if (!file.getParentFile().exists()) {
//                                                                    file.getParentFile().mkdirs();
//                                                                }
//                                                                file.createNewFile();
//                                                            }
//                                                            fos = new FileOutputStream(file);
//                                                            bfo = new BufferedOutputStream(fos);
//                                                            bfo.write(tmpBNKReturnBytes, 0, tmpBNKReturnBytes.length);
//                                                            bfo.flush();
//
//                                                            fos.close();
//                                                            fos = null;
//                                                            bfo.close();
//                                                            bfo = null;
//
//                                                    		File tmpPdf = new File(localPdfFileTemp);
//                                                    		File destPdf = new File(localPdfFile);
//                                                    		boolean renamed = tmpPdf.renameTo(destPdf);
//                                                    		if(renamed && destPdf.exists()){
//                                                    			int rowAff = receiptHelper.updateDownState(pReqReceipt.actNum, istNbr,localFileRelative,FILE_NAME, "2");
//                                                                aLog = "回单编号"+istNbr+"，文件"+FILE_NAME+"下载成功，重命名成功，更新影响行数："+rowAff;
//                                                                WriteBankLogLn(aLog);
//                                                                FGBiz.logTrace.debug(this.getLogCode(), aLog);
//                                                    		}else{
//                                                    			aLog = localPdfFileTemp+"重命名为"+localPdfFile+"失败";
//                                                    			WriteBankLogLn(aLog);
//                                                                FGBiz.logTrace.debug(this.getLogCode(), aLog);
//                                                    		}
//
//
//                                                        } catch (IOException e) {
//                                                            WriteBankLogLn(e);
//                                                            FGBiz.logTrace.exception(this.getLogCode(), e);
//                                                        } finally {
//                                                            if (fos != null) {
//                                                                try {
//                                                                    fos.close();
//                                                                } catch (Exception e) {
//                                                                	WriteBankLogLn(e);
//                                                                }
//                                                            }
//                                                            if (bfo != null) {
//                                                                try {
//                                                                    bfo.close();
//                                                                } catch (Exception e) {
//                                                                	WriteBankLogLn(e);
//                                                                }
//                                                            }
//                                                        }
//                                                    }
//
//                                            } else {
//                                            	batchResult = IsBatchValid(postRet[1]);
//                                                WriteBankLogLn(batchResult);
//                                                FGBiz.logTrace.debug(this.getLogCode(), batchResult);
//                                            }
//                                        } catch (Exception e) {
//                                            WriteBankLogLn(e);
//                                        }
//                                    }
//                                }
//                            } else {
//                                aLog = "SYS_TX_STATUS："+xlnStatus+"，SYS_RESP_CODE："+xlnRespCode+"，SYS_RESP_DESC："+xlnRespDesc;
//                        		WriteBankLogLn(aLog);
//                            	FGBiz.logTrace.debug(this.getLogCode(), aLog);
//                            }
//                        }else {
//                            WriteBankLogLn("载入xml失败：" + msg.toString());
//                            FGBiz.logTrace.debug(this.getLogCode(), "载入xml失败：" + msg.toString());
//                        }
//                    }else{
//                    	aLog = tmpStrRet[0]+"-"+tmpStrRet[1];
//                    	WriteBankLogLn(aLog);
//                    	FGBiz.logTrace.debug(this.getLogCode(), aLog);
//                    }
//
//                    //rdCount = 0;
//                    //batReq = new ArrayList<String>();
//            	}
//            //}
//            SyncReceipt.resetDelayCounter();//同步任务重新计数延时
//        }catch(Exception ex){
//        	this.WriteBankLogLn(ex);
//        }finally{
//        	receiptHelper.close();
//        }
//
//		return null;
//	}
//
//}
